import request from '@/utils/request'

const URL = 'op/cleaner'

export function getAllCleaner() {
  return request({
    url: URL + '',
    method: 'post'
  })
}

export function delCleaner(id) {
  return request({
    url: URL + '/delete/' + id,
    method: 'post',
    data: {
    }
  })
}

export function delCleaners(cleaners) {
  return request({
    url: URL + '/deleteS',
    method: 'post',
    data: {
      cleaners: cleaners
    }
  })
}

export function addCleaner(form) {
  return request({
    url: URL + '/add',
    method: 'post',
    data: form
  })
}

export function updateCleaner(data) {
  return request({
    url: URL + '/update',
    method: 'post',
    data: data
  })
}

export function getCleanerById(cleanerId) {
  return request({
    url: URL + '/' + cleanerId,
    method: 'post',
    data: {

    }
  })
}

